#include<bits/stdc++.h>
using namespace std;
const int MAXN=1e5;
int a[MAXN+5];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    scanf("%d",&n);
    for(int i=1;i<=n;i++) scanf("%d",&a[i]);
    sort(a+1,a+n+1);
    int x=1,y=1,ans=n;
    while(x<=n&&y<=n){
        if(a[x]==a[y]){
            y++;
            continue;
        }
        ans--;
        x++,y++;
    }
    printf("%d",ans);
    return 0;
}//I want to get the first prize!!!!!!
